<%@page contentType="text/html; charset=UTF-8" %>

<script>
    jQuery(function ($) {
        $("#editForm").ajaxForm(function (data) {
            $("#mainDiv").html(data);
        });
    })
</script>
<div class="page-header">
    <h3>修改字典值</h3>
</div>
<div style="width: 60%;">
    <form id="editForm" action="/value/edit" method="post" class="form-horizontal" role="form">
        <input type="hidden" name="id" value="${value.id}">
        <div class="form-group">
            <label for="edit-dicTypeCode" class="col-sm-2 control-label">字典类型&nbsp;</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="edit-dicTypeCode" value="${value.type.name}" readonly>
            </div>
        </div>

        <div class="form-group">
            <label for="edit-dicValue" class="col-sm-2 control-label">
                字典值<span style="color:red;">*</span>
            </label>
            <div class="col-sm-10">
                <input name="value" type="text" class="form-control" id="edit-dicValue" value="${value.value}">
            </div>
        </div>

        <div class="form-group">
            <label for="edit-text" class="col-sm-2 control-label">文本&nbsp;</label>
            <div class="col-sm-10">
                <input name="text" type="text" class="form-control" id="edit-text" value="${value.text}">
            </div>
        </div>

        <div class="form-group">
            <label for="edit-orderNo" class="col-sm-2 control-label">排序号&nbsp;</label>
            <div class="col-sm-10">
                <input name="orderNo" type="text" class="form-control" id="edit-orderNo" value="${value.orderNo}">
            </div>
        </div>
        <div style="text-align: center">
            <button type="submit" class="btn btn-primary" style="margin-right: 20px">修改</button>
            <button type="button" class="btn btn-default" onclick="back();">取消</button>
        </div>
    </form>
</div>